import random
x=0
y=0
c=0
n=int(input("кол-во выстрелов:"))
if n>0:
    for i in range(n):
        x=random.randint(-100,100)
        y=random.randint(-100,100)
        if x<0 and y>0 and x<=5 and y<=5:
            c+=1
        elif x<0 and y>0 and x>=-7 and y<=5:
            c+=1
        elif x<0 and y<0 and x>=-7 and y>=-8:
            c+=1
        elif x>0 and y<0 and x<=5 and y>=-8:
            c+=1

print("кол-во попаданий:",c)
